<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2019/5/22
 * Time: 17:48
 * name:新增绩效提成记录
 * url:/erpSell/add_performance_royalty_record
 */

//获取参数
$oprr_uid        = $route->bodyParams['oprr_uid'];
$oprr_ooid       = $route->bodyParams['oprr_ooid'];
$oprr_way        = $route->bodyParams['oprr_way'];
$oprr_type       = $route->bodyParams['oprr_type'];
$oprr_oesid      = $route->bodyParams['oprr_oesid'];
$oprr_is_teacher = $route->bodyParams['oprr_is_teacher'];
$oprr_price      = $route->bodyParams['oprr_price'];

//写入数组
$insertArr = [
    'oprr_uid'         => $oprr_uid,
    'oprr_ooid'        => $oprr_ooid,
    'oprr_way'         => $oprr_way,
    'oprr_type'        => $oprr_type,
    'oprr_oesid'       => $oprr_oesid,
    'oprr_is_teacher'  => $oprr_is_teacher,
    'oprr_price'       => $oprr_price,
    'oprr_create_time' => time()
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_performance_royalty_record",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );